package labox.innovation.gameserver.network.clientpackets;

/**
 * 客户端请求设置聊天、系统消息等接收开关处理类
 * @author Frank
 *
 */
public class ChatSwitchPacket extends L2GameClientPacket {
	private static final String _C_CHATSWITCHPACKET = "[C]  ChatSwitchPacket";
	
	private short chatSwitches;
	@Override
	public String getType() {
		return _C_CHATSWITCHPACKET;
	}

	@Override
	protected void readImpl() {
		this.chatSwitches = readShort();  //-- 聊天、系统消息开关设置信息
	}

	@Override
	protected void runImpl() {
		getClient().getActiveChar().setChatSwitches(chatSwitches); //-- 刷新当前玩家聊天开关
	}

}
